/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package general;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 *
 * @author SISTEMAS
 */
@Entity
@Table(name = "pgr100", catalog = "netlabV2", schema = "")
@NamedQueries({
    @NamedQuery(name = "Pgr100.findAll", query = "SELECT p FROM Pgr100 p"),
    @NamedQuery(name = "Pgr100.findByPgr100nocia", query = "SELECT p FROM Pgr100 p WHERE p.pgr100nocia = :pgr100nocia"),
    @NamedQuery(name = "Pgr100.findByPgr100cdgo", query = "SELECT p FROM Pgr100 p WHERE p.pgr100cdgo = :pgr100cdgo"),
    @NamedQuery(name = "Pgr100.findByPgr100desc", query = "SELECT p FROM Pgr100 p WHERE p.pgr100desc = :pgr100desc"),
    @NamedQuery(name = "Pgr100.findByPgr100load", query = "SELECT p FROM Pgr100 p WHERE p.pgr100load = :pgr100load"),
    @NamedQuery(name = "Pgr100.findByPgr100fead", query = "SELECT p FROM Pgr100 p WHERE p.pgr100fead = :pgr100fead"),
    @NamedQuery(name = "Pgr100.findByPgr100lomo", query = "SELECT p FROM Pgr100 p WHERE p.pgr100lomo = :pgr100lomo"),
    @NamedQuery(name = "Pgr100.findByPgr100femo", query = "SELECT p FROM Pgr100 p WHERE p.pgr100femo = :pgr100femo")})
public class Pgr100 implements Serializable {
    @Transient
    private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
    private static final long serialVersionUID = 1L;
    @Column(name = "pgr100nocia")
    private String pgr100nocia;
    @Id
    @Basic(optional = false)
    @Column(name = "pgr100cdgo")
    private String pgr100cdgo;
    @Column(name = "pgr100desc")
    private String pgr100desc;
    @Column(name = "pgr100load")
    private String pgr100load;
    @Column(name = "pgr100fead")
    @Temporal(TemporalType.DATE)
    private Date pgr100fead;
    @Column(name = "pgr100lomo")
    private String pgr100lomo;
    @Column(name = "pgr100femo")
    @Temporal(TemporalType.DATE)
    private Date pgr100femo;

    public Pgr100() {
    }

    public Pgr100(String pgr100cdgo) {
        this.pgr100cdgo = pgr100cdgo;
    }

    public String getPgr100nocia() {
        return pgr100nocia;
    }

    public void setPgr100nocia(String pgr100nocia) {
        String oldPgr100nocia = this.pgr100nocia;
        this.pgr100nocia = pgr100nocia;
        changeSupport.firePropertyChange("pgr100nocia", oldPgr100nocia, pgr100nocia);
    }

    public String getPgr100cdgo() {
        return pgr100cdgo;
    }

    public void setPgr100cdgo(String pgr100cdgo) {
        String oldPgr100cdgo = this.pgr100cdgo;
        this.pgr100cdgo = pgr100cdgo;
        changeSupport.firePropertyChange("pgr100cdgo", oldPgr100cdgo, pgr100cdgo);
    }

    public String getPgr100desc() {
        return pgr100desc;
    }

    public void setPgr100desc(String pgr100desc) {
        String oldPgr100desc = this.pgr100desc;
        this.pgr100desc = pgr100desc;
        changeSupport.firePropertyChange("pgr100desc", oldPgr100desc, pgr100desc);
    }

    public String getPgr100load() {
        return pgr100load;
    }

    public void setPgr100load(String pgr100load) {
        String oldPgr100load = this.pgr100load;
        this.pgr100load = pgr100load;
        changeSupport.firePropertyChange("pgr100load", oldPgr100load, pgr100load);
    }

    public Date getPgr100fead() {
        return pgr100fead;
    }

    public void setPgr100fead(Date pgr100fead) {
        Date oldPgr100fead = this.pgr100fead;
        this.pgr100fead = pgr100fead;
        changeSupport.firePropertyChange("pgr100fead", oldPgr100fead, pgr100fead);
    }

    public String getPgr100lomo() {
        return pgr100lomo;
    }

    public void setPgr100lomo(String pgr100lomo) {
        String oldPgr100lomo = this.pgr100lomo;
        this.pgr100lomo = pgr100lomo;
        changeSupport.firePropertyChange("pgr100lomo", oldPgr100lomo, pgr100lomo);
    }

    public Date getPgr100femo() {
        return pgr100femo;
    }

    public void setPgr100femo(Date pgr100femo) {
        Date oldPgr100femo = this.pgr100femo;
        this.pgr100femo = pgr100femo;
        changeSupport.firePropertyChange("pgr100femo", oldPgr100femo, pgr100femo);
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (pgr100cdgo != null ? pgr100cdgo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Pgr100)) {
            return false;
        }
        Pgr100 other = (Pgr100) object;
        if ((this.pgr100cdgo == null && other.pgr100cdgo != null) || (this.pgr100cdgo != null && !this.pgr100cdgo.equals(other.pgr100cdgo))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "mantenimientoprogramas.Pgr100[ pgr100cdgo=" + pgr100cdgo + " ]";
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    }
    
}
